package org.wmq.javafxmapcollectioncsserver.model.Entity;

import java.time.LocalDate;

public class MapEntity extends BaseEntity{
    private String name;
    private String introduction;
    private String url;
    private String mapType;
    private String medium;
    private LocalDate collectionTime;
    private LocalDate publicationTime;

    public MapEntity() {
    }

    public MapEntity(String name, String introduction, String url, String mapType, String medium, LocalDate collectionTime, LocalDate publicationTime) {
        this.name = name;
        this.introduction = introduction;
        this.url = url;
        this.mapType = mapType;
        this.medium = medium;
        this.collectionTime = collectionTime;
        this.publicationTime = publicationTime;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return introduction
     */
    public String getIntroduction() {
        return introduction;
    }

    /**
     * 设置
     * @param introduction
     */
    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    /**
     * 获取
     * @return url
     */
    public String getUrl() {
        return url;
    }

    /**
     * 设置
     * @param url
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * 获取
     * @return mapType
     */
    public String getMapType() {
        return mapType;
    }

    /**
     * 设置
     * @param mapType
     */
    public void setMapType(String mapType) {
        this.mapType = mapType;
    }

    /**
     * 获取
     * @return medium
     */
    public String getMedium() {
        return medium;
    }

    /**
     * 设置
     * @param medium
     */
    public void setMedium(String medium) {
        this.medium = medium;
    }

    /**
     * 获取
     * @return collectionTime
     */
    public LocalDate getCollectionTime() {
        return collectionTime;
    }

    /**
     * 设置
     * @param collectionTime
     */
    public void setCollectionTime(LocalDate collectionTime) {
        this.collectionTime = collectionTime;
    }

    /**
     * 获取
     * @return publicationTime
     */
    public LocalDate getPublicationTime() {
        return publicationTime;
    }

    /**
     * 设置
     * @param publicationTime
     */
    public void setPublicationTime(LocalDate publicationTime) {
        this.publicationTime = publicationTime;
    }

    public String toString() {
        return "MapEntity{name = " + name + ", introduction = " + introduction + ", url = " + url + ", mapType = " + mapType + ", medium = " + medium + ", collectionTime = " + collectionTime + ", publicationTime = " + publicationTime + "}";
    }
}
